#ifndef FFMPEGEXTRA_EYERWASMEVENT_HPP
#define FFMPEGEXTRA_EYERWASMEVENT_HPP

#include <mutex>
#include <condition_variable>

namespace Eyer
{
    class EyerWASMEvent
    {
    public:
        virtual int Run() = 0;

        bool isFinish();
        bool isSucc();

    public:
        std::mutex mtx;
        std::condition_variable cond;

    protected:
        std::atomic<bool> isFinished {false};
        std::atomic<bool> isSucced {false};
    };
}

#endif //FFMPEGEXTRA_EYERWASMEVENT_HPP
